package com.qiyuexinxi.chat.dto.request;

import com.alibaba.fastjson.JSONArray;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import java.util.List;
import java.util.Map;

/**
 * @author yangxingyu
 * @date 2020/2/25
 * @description
 */
@ApiModel("修改用户信息")
@Data
public class UpdateUserRequest {

    @ApiModelProperty(value = "用户ID",required = true)
    @NotNull(message = "用户ID不能为空")
    private Integer userId;

    @ApiModelProperty(value = "用户名称",required = true)
    @NotEmpty(message = "用户名称不能为空")
    private String username;

    @ApiModelProperty("vip标示 0:普通会员 1:月vip 2:季vip 3:年vip")
    @Pattern(regexp = "[0-3]", message = "vip标示格式错误 0:普通会员 1:月vip 2:季vip 3:年vip")
    private String vipLogo;

    @ApiModelProperty("个性签名")
    @NotEmpty(message = "个性签名不能为空")
    private String signature;

    @ApiModelProperty("兴趣爱好")
    @NotEmpty(message = "兴趣爱好不能为空")
    private String hobby;

    @ApiModelProperty("背景图片id")
    private Integer backPicture;

    @ApiModelProperty("用户图片id json格式")
    private JSONArray pictureUrls;

    @ApiModelProperty("所在城市")
    @NotEmpty(message = "所在城市不能为空")
    private String city;

    @ApiModelProperty("性别")
    @NotEmpty(message = "性别不能为空")
    @Pattern(regexp = "[1-2]", message = "性别格式错误:1.男 2.女")
    private String sex;

    @ApiModelProperty("年龄")
    @NotEmpty(message = "年龄不能为空")
    @Pattern(regexp = "(?:[1-9][0-9]?|1[01][0-9]|120)", message = "年龄格式错误：年龄范围0-120")
    private String age;



}
